import requests from "./request";
import Qs from "qs";
//首页学院新闻API
export const contentnews = (params) => {
  return requests({
    url: "/show/news",
    method: "get",
    params,
  });
};
//首页通知公告API
export const contentnotices = (params) => {
  return requests({
    url: "/zy/notice",
    method: "get",
    params,
  });
};
//首页媒体水院API
export const contentmedia = (params) => {
  return requests({
    url: "/zy/mediasy",
    method: "get",
    params,
  });
};
//首页行业动态API
export const contentindustry = (params) => {
  return requests({
    url: "/zy/industrydynamics",
    method: "get",
    params,
  });
};
//首页部门动态API
export const contentdynamics = (params) => {
  return requests({
    url: "/zy/departmentdynamics",
    method: "get",
    params,
  });
};
//查看更多学院新闻API
export const morenews = (param) => {
  return requests({
    url: "/xq/news",
    method: "post",
    data: Qs.stringify({ page: 1 }, { indices: false }),
  });
};
//查看更多公告通知API
export const morenotices = (params) => {
  return requests({
    url: "/xq/notice",
    method: "post",
    data: Qs.stringify({ page: 1 }, { indices: false }),
    params: { id: 1 },
  });
};
//查看更多部门动态API
export const moredynamics = (params) => {
  return requests({
    url: "/xq/departmentdynamics",
    method: "post",
    data: Qs.stringify({ page: 1 }, { indices: false }),
    params: { id: 1 },
  });
};
//查看更多媒体水院API
export const moremedia = (params) => {
  return requests({
    url: "/xq/mediasy",
    method: "post",
    data: Qs.stringify({ page: 1 }, { indices: false }),
    params: { id: 1 },
  });
};
//查看更多行业动态API
export const moreindustry = (params) => {
  return requests({
    url: "/xq/industrydynamics",
    method: "post",
    data: Qs.stringify({ page: 1 }, { indices: false }),
    params: { id: 1 },
  });
};
//查看更多电子院报API
export const morenewspaper = (params) => {
  return requests({
    url: "/xq/electronicacademynewspaper",
    method: "post",
    data: Qs.stringify({ page: 1 }, { indices: false }),
    params: { id: 1 },
  });
};
//学院概况学院简介
export const introduction = (params) => {
  return requests({
    url: "/xygk/intro",
    method: "get",
    params,
  });
};
//学院概况历史沿革
export const history = (params) => {
  return requests({
    url: "/xygk/history",
    method: "get",
    params,
  });
};
//学院概况校风校训
export const schoolspirit = (params) => {
  return requests({
    url: "/xygk/motto",
    method: "get",
    params,
  });
};
//学院概况现任领导
export const leader = (params) => {
  return requests({
    url: "/xygk/lead",
    method: "get",
    params,
  });
};
//学院概况校园风光
export const scenery = (params) => {
  return requests({
    url: "/xygk/scenery",
    method: "get",
    params,
  });
};
//学院概况校园鸟瞰图
export const map = (params) => {
  return requests({
    url: "/xygk/map",
    method: "get",
    params,
  });
};
//组织机构党政机构
export const GovernmentOrganization = (params) => {
  return requests({
    url: "/zzjg/dzjg",
    method: "get",
    params,
  });
};
//组织机构党政机构
export const TeachingOrganization = (params) => {
  return requests({
    url: "/zzjg/jxjg",
    method: "get",
    params,
  });
};
// 教学科研创新平台
export const innovate = (params) => {
  return requests({
    url: "/jxky/cxpt",
    method: "get",
    params,
  });
};
// 教学科研名师工作室
export const master = (params) => {
  return requests({
    url: "/jxky/msgzs",
    method: "get",
    params,
  });
};
// 公共服务教学日历
export const TeachingCalendar = (params) => {
  return requests({
    url: "/ggfw/jxrl",
    method: "get",
    params,
  });
};
// 公共服务联系电话
export const phone = (params) => {
  return requests({
    url: "/ggfw/lxdh",
    method: "get",
    params,
  });
};
// 公共服务作息时间
export const rest = (params) => {
  return requests({
    url: "/ggfw/zxsj",
    method: "get",
    params,
  });
};
// 信息公开章程建设
export const constitution = (params) => {
  return requests({
    url: "/informate/zcjs",
    method: "get",
    params,
  });
};
// 信息公开学院十三五规划
export const plan = (params) => {
  return requests({
    url: "/informate/ssw",
    method: "get",
    params,
  });
};
// 首页侧边栏
export const menu = (params) => {
  return requests({
    url: "/menu/tree",
    method: "get",
    params,
  });
};
